import { sendRequest } from '@/http';

/* 按照编码查询枚举字典 */
export const queryStateByCode = (code: string) =>
  sendRequest({
    url: `/admin/dict/queryStateByCode`,
    method: 'get',
    params: { code },
    needCache: true,
  });

/* 查询枚举字典 */
export const queryStateList = (params: any) =>
  sendRequest({
    url: `/admin/dict/queryStateList`,
    method: 'get',
    params,
  });
